							<style type="text/css">
  									@import url(../includes/add-ons/css/facebox.css);
							</style>
							
<script src="../includes/add-ons/ajax/jquery-1.2.2.pack.js" type="text/javascript"></script>
<script src="../includes/add-ons/ajax/facebox.js" type="text/javascript"></script>

							{literal}
<SCRIPT LANGUAGE="JavaScript">
 jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox() 
    })
</SCRIPT>
							{/literal}

</head>

							{*التحكم في الستايلات - (Powered By MySmartBB)*} 
							{include file=style_header.tpl} <br>
<br>
<form method="POST" action="style.php?update=1">
  <div align="center">
    <table class="border" summary="جدول" cellspacing="1" width="50%">
      <tr>
        <td class="row1" align="center" width="100%" colspan="2">
         <table border="0" width="30%" cellspacing="0" cellpadding="0">
			<tr>
				<td align="right"><b>
				<img border="0" src="style/images/Plus.png" align="left" width="25" height="25">
				</b></td>
				<td width="585">
				<p align="center"><b><a href="style.php?add=1&index=1">
				<font color="#CC0000" style="font-size: 8pt">اضافة ستايل جديد</font></a></b></td>
			</tr>
			</table>
		</td>
      </tr>
      <tr>
        <td class="row1" align="center" width="50%">
         الستايل الإفتراضي</td>
        <td class="row1" align="center" width="50%">
         <select size="1" name="D1">
          <option selected value="{$getdefstyle_row.id}">
			{$getdefstyle_row.style_title}</option>
          {section name=idx loop=$getnotdefstyle_rows}<option value="{$getnotdefstyle_rows[idx].id}">
			{$getnotdefstyle_rows[idx].style_title}</option>{/section}
         </select></td>
      </tr>
      <tr>
        <td class="row1" align="center" width="100%" colspan="2">
         &nbsp;<input class="button" type="submit" value="موافق" name="B1"></td>
      </tr>
    </table>
  	</div>
</form>
<div align="center">
  <table class="border" summary="جدول" cellspacing="1" width="50%" dir="ltr">
    {section name=idx loop=$getstyle_rows}
    <tr>
      <td width="823" align="center" colspan="2">
      <br>
<table border="0" width="100%" cellpadding="3">
			<tr>
				<td width="30" align="center"><a href="../login.php?change_style=1&id={$getstyle_rows[idx].id}"><img border="0" src="style/images/show.png"></a></td>
				<td rowspan="3">
				<p align="center">
				<a rel="facebox" href="../styles/{$getstyle_rows[idx].style_title}/style.gif">
				<font color="#000000">
				<img border="1" src="../styles/{$getstyle_rows[idx].style_title}/style.gif" width="200" height="150"></font></a></td>
			</tr>
			<tr>
				<td width="30" align="center"><a href="style.php?edit=1&index=1&id={$getstyle_rows[idx].id}"><img border="0" src="style/images/edit.png"></a></td>
			</tr>
			<tr>
				<td width="30" align="center">
				<img border="0" src="style/images/delete.png"></td>
			</tr>
		</table>
		</td>
    </tr>
    <tr>
      <td class="row1" width="823" align="center" colspan="2"><b>
		<font color="#3333FF" style="font-size: 8pt"><span lang="en-us">ESC</span> 
		اضغط على الصورة لعرض الستايل بشكل مكبر , لإغلاق النافذة اضغط</font></b></td>
    </tr>
    <tr>
      <td class="row1" width="412" align="center"><font color="#D5262B">
		<span style="font-size: 8pt; font-weight: 700">
		{$getstyle_rows[idx].style_title}</span></font></td>
      <td class="row1" width="411" align="center">اسم الستايل</td>
    </tr>
    <tr>
      <td class="row1" width="412" align="center">
		<span style="font-size: 8pt; font-weight: 700">
		{$getstyle_rows[idx].style_order}</span></td>
      <td class="row1" width="411" align="center">ترتيب الستايل</td>
    </tr>
    <tr>
      <td class="row1" width="412" align="center">{if 
		$getstyle_rows[idx].style_on eq 0 }<span style="font-size: 8pt; font-weight: 700">معطّل</span> 
		{/if}{if $getstyle_rows[idx].style_on eq 1 }<b><span style="font-size: 8pt">منشّط</span></b> 
		{/if}</td>
      <td class="row1" width="411" align="center">حالة الستايل</td>
    </tr>
    {/section}
  </table>
  </center>
</div>
<br>
							{include file=style_footer.tpl}